//
//  HomeTravelTableViewCell.m
//  CivilianTravel
//
//  Created by 许仕杰 on 16/7/21.
//  Copyright © 2016年 许仕杰. All rights reserved.
//

#import "HomeTravelTableViewCell.h"
#import "HomeTraverModel.h"
@interface HomeTravelTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *img;
@property (weak, nonatomic) IBOutlet UILabel *title;

@property (weak, nonatomic) IBOutlet UILabel *desc;


@end

@implementation HomeTravelTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setCellWithModel:(HomeTraverModel *)model{
    [self.img sd_setImageWithURL:[NSURL URLWithString:model.img]];
    self.title.text = model.title;
    self.desc.text = model.desc;
}



@end
